//
// @Auther: by wujehy 
// @Email:wujehy@qq.com
// @Data:20-4-14
// @Time:下午2:33
//

#include "DataBaseHelper.h"

int DataBaseHelper::tableCheckExists()
{
    if (userDataBaseFactory)
    {
        userDataBaseFactory->initUserTable();
    }

    if (ioTDataBaseFactory)
    {
        ioTDataBaseFactory->initIoTTable();
    }
}

IoTDataBaseFactory *DataBaseHelper::getIoTDataBaseFactory() const
{
    return ioTDataBaseFactory;
}

DataBaseHelper::~DataBaseHelper()
{
    if (ioTDataBaseFactory)delete ioTDataBaseFactory;
    if (userDataBaseFactory)delete userDataBaseFactory;


}
